package com.weimei.conversionTreasure.http.entity;

import com.google.gson.annotations.SerializedName;

import java.io.Serializable;
import java.util.List;

public class DealerDetailBean extends BaseResult implements Serializable {
    @SerializedName("data")
    private DataDTO data;

    public DataDTO getData() {
        return data;
    }

    public void setData(DataDTO data) {
        this.data = data;
    }

    public static class DataDTO implements Serializable{
        @SerializedName("id")
        private int id;
        @SerializedName("name")
        private String name;
        @SerializedName("telephone")
        private String telephone;
        @SerializedName("weChat")
        private String weChat;
        @SerializedName("tradeNum")
        private int tradeNum;
        @SerializedName("totalAmount")
        private double totalAmount;
        @SerializedName("addtime")
        private String addtime;
        @SerializedName("notes")
        private String notes;
        @SerializedName("tradeList")
        private List<TradeListDTO> tradeList;

        public String getNotes() {
            return notes;
        }

        public void setNotes(String notes) {
            this.notes = notes;
        }

        public String getWeChat() {
            return weChat;
        }

        public void setWeChat(String weChat) {
            this.weChat = weChat;
        }

        public int getId() {
            return id;
        }

        public void setId(int id) {
            this.id = id;
        }

        public String getName() {
            return name;
        }

        public void setName(String name) {
            this.name = name;
        }

        public String getTelephone() {
            return telephone;
        }

        public void setTelephone(String telephone) {
            this.telephone = telephone;
        }

        public String getTradeNum() {
            return "交易"+tradeNum+"笔";
        }

        public void setTradeNum(int tradeNum) {
            this.tradeNum = tradeNum;
        }

        public String getTotalAmount() {
            return "总金额："+totalAmount;
        }

        public void setTotalAmount(double totalAmount) {
            this.totalAmount = totalAmount;
        }

        public String getAddtime() {
            return "添加时间："+addtime.substring(0,10);
        }



        public void setAddtime(String addtime) {
            this.addtime = addtime;
        }

        public List<TradeListDTO> getTradeList() {
            return tradeList;
        }

        public void setTradeList(List<TradeListDTO> tradeList) {
            this.tradeList = tradeList;
        }

        public static class TradeListDTO implements Serializable{
            @SerializedName("addtime")
            private String addtime;
            @SerializedName("tradeList")
            private List<TradeListDTOC> tradeList;

            public String getAddtime() {
                return addtime.substring(6,10);
            }

            public void setAddtime(String addtime) {
                this.addtime = addtime;
            }

            public List<TradeListDTOC> getTradeList() {
                return tradeList;
            }

            public void setTradeList(List<TradeListDTOC> tradeList) {
                this.tradeList = tradeList;
            }

            public static class TradeListDTOC implements Serializable{
                @SerializedName("id")
                private int id;
                @SerializedName("addtime")
                private String addtime;
                @SerializedName("className")
                private String className;
                @SerializedName("amount")
                private double amount;
                @SerializedName("notes")
                private String notes;

                public String getNotes() {
                    return notes;
                }

                public void setNotes(String notes) {
                    this.notes = notes;
                }

                public int getId() {
                    return id;
                }

                public void setId(int id) {
                    this.id = id;
                }

                public String getAddtime() {
                    return addtime;
                }

                public void setAddtime(String addtime) {
                    this.addtime = addtime;
                }

                public String getTypes() {
                    return className;
                }

                public void setTypes(String types) {
                    this.className = types;
                }

                public String getAmount() {
                    return "-"+amount;
                }

                public void setAmount(double amount) {
                    this.amount = amount;
                }
            }
        }
    }
}
